# .PHONY: preproc phase1 phase2 phase3 clean

preproc:
	make -f preprocessing.Makefile all
	make user.empty.labels
	make test.group.rate
	@touch preproc

phase1: preproc test.group.rate
	cd run/6.uprofx62.star2000.uproftag.uaction.sns_train.ukey.imfb.icat.h24.reg.decay; ./run.sh uprofx62.star2000.uproftag.uaction.sns.ukey.imfb.icat.h24.reg.decay.l02d09m05.2.conf; 
	@touch phase1

phase2: phase1
	cd run/6.uprofx62.star2000.uproftag.uaction.sns_train.ukey.imfb.icat.h24.reg.decay; ../pred_traintest.sh uprofx62.star2000.uproftag.uaction.sns.ukey.imfb.icat.h24.reg.decay.l02d09m05.2.conf 37
	cd run/7.RKDX.T.uprof.tm.uact.cath23.tagx1.lambda.1; ./run.sh purge.RKDX.T.uprof.tm.cath23.tagx1.lambda.tax.1.conf
	@touch phase2

phase3: phase2
	cd run/7.RKDX.T.uprof.tm.uact.cath23.tagx1.lambda.1; ../pred_traintest.sh purge.RKDX.T.uprof.tm.cath23.tagx1.lambda.tax.1.conf 15
	cd run/8.TRKDXuptmtgapct4.f5.T.sdprev2g.sdnext4g.acnext600.uapm60r5.d6.subsample.1; ./run.sh purge.TRKDXuptmtgapct4.f5.T.sdprev2g.sdnext4g.acnext600.uapm60r5.d6.subsample.1.conf
	@touch phase3

clean:
	rm -f preproc phase1 phase2 phase3
	python python/clean_results.py
	find run -name "*.model" | xargs -r rm
	find run -name "train.pred.*" | xargs -r rm
	find run -name "test.pred.*" | xargs -r rm
